io

object io

Wrappers for @actions/io.

Functions

cp
Link copied to clipboard
suspend fun cp(source: Path, dest: Path, recursive: Boolean = false, force: Boolean = true, copySourceDirectory: Boolean = true)
Copy files.
suspend fun cp(source: Path, dest: String, recursive: Boolean = false, force: Boolean = true, copySourceDirectory: Boolean = true)
Copy files.
suspend fun cp(source: String, dest: Path, recursive: Boolean = false, force: Boolean = true, copySourceDirectory: Boolean = true)
Copy files.
suspend fun cp(source: String, dest: String, recursive: Boolean = false, force: Boolean = true, copySourceDirectory: Boolean = true)
Copy files.
mkdirP
Link copied to clipboard
suspend fun mkdirP(path: Path)
Create a directory and any parents that don't exist.
suspend fun mkdirP(path: String)
Create a directory and any parents that don't exist.
mv
Link copied to clipboard
suspend fun mv(source: Path, dest: Path, force: Boolean = true)
Move files.
suspend fun mv(source: Path, dest: String, force: Boolean = true)
Move files.
suspend fun mv(source: String, dest: Path, force: Boolean = true)
Move files.
suspend fun mv(source: String, dest: String, force: Boolean = true)
Move files.
rmRF
Link copied to clipboard
suspend fun rmRF(inputPath: Path)
Remove files recursively (rm -rf).
suspend fun rmRF(inputPath: String)
Remove files recursively (rm -rf).
which
Link copied to clipboard
suspend fun which(tool: Path): Path?
Get the location of a tool, or null if it can't be found.
suspend fun which(tool: String): String?
Get the location of a tool, or null if it can't be found.

Sources

js source
Link copied to clipboard